package mshop.com.schild_kotlin.activitys

import android.content.Intent
import kotlinx.android.synthetic.main.activity_welcome.*
import mshop.com.schild_kotlin.MainActivity
import mshop.com.schild_kotlin.R
import mshop.com.schild_kotlin.base.BaseActivity


/**
 * Created by mayi on 2018/5/21.
 * @Autor CaiWF
 * @Email 401885064@qq.com
 * @TODO  欢迎页面
 */
class WelComeActivity : BaseActivity() {
    override fun getNeedRefresh(): Boolean {
        return false
    }

    override fun onRefresh() {
    }

    override fun getLayoutResources(): Int {
        return R.layout.activity_welcome
    }

    override fun initView() {
        welcome_tv!!.postDelayed({
            val intent = Intent(this@WelComeActivity, MainActivity::class.java);
            startActivity(intent)
            finish()
        }, 1000)
    }
}